// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_b.p_b.p_f;

import com.nnee.p_b.p_b.p_e.cls_d;
import com.nnee.p_b.p_b.p_e.cls_f;
import com.nnee.p_g.cls_b;
import org.json.JSONException;
import org.json.JSONObject;

// Referenced classes of package com.nnee.b.b.f:
//            b, c

public class cls_a extends  com.nnee.p_b.p_b.p_e.cls_a
{

    public cls_a()
    {
        super("SrAmtZ5vYhL4JDgh", "tBZdZuJZQANErLJRLeLJ5Rpfz4T1JNk0");
    }

    public static cls_a a()
    {
        if(e == null)
            e = new cls_a();
        return e;
    }

    private String c(String s, String s1)
    {
        int i;
        i = 0;
        if(s == null)
        	return s1;
        int j;
        if(s.length() < 5)
        	return s1;
        j = Integer.valueOf(s.substring(0, 5)).intValue();
        i = j;
        switch(i)
        {
      
        case 401:
        case 1401:
        	 s1 = "\u7F51\u6613\u5FAE\u535A\u7ED1\u5B9A\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u7ED1\u5B9A\u3002";
        	break;
        default:
        	break;
        }
        
        return s1;
 
    }

    public int a(cls_d d1)
    {
        b("SrAmtZ5vYhL4JDgh", "tBZdZuJZQANErLJRLeLJ5Rpfz4T1JNk0");
        return a(((com.nnee.p_fk.p_b.cls_a) (new com.nnee.p_b.p_b.p_f.cls_b())), ((com.nnee.p_fk.p_b.cls_d) (d1)));
    }

    public int a(String s, String s1, String s2, String s3, String s4, String s5, cls_d d1)
    {
        return a(com.nnee.p_b.p_b.p_f.cls_c.a(s, s1, s2, s3, s4, s5), ((com.nnee.p_fk.p_b.cls_d) (d1)));
    }

    public cls_f a(int i, String s)
    {
        cls_f f1;
        if(s == null)
        {
            f1 = new cls_f(1, -5, null, null);
        } else
        {
            com.nnee.p_g.cls_b.e("NeteaseService", s);
            f1 = new cls_f(1);
            f1.h = i;
            try
            {
                JSONObject jsonobject = new JSONObject(s);
                f1.i = jsonobject.optString("message_code");
                f1.j = jsonobject.optString("error");
                f1.j = c(f1.i, f1.j);
            }
            catch(JSONException jsonexception)
            {
                f1.h = -1;
                f1.j = cls_f.a(-1);
                jsonexception.printStackTrace();
            }
        }
        return f1;
    }

    public String a(String s)
    {
        return (new StringBuilder()).append("http://api.t.163.com").append(s).toString();
    }

    public static final String a = "SrAmtZ5vYhL4JDgh";
    public static final String b = "tBZdZuJZQANErLJRLeLJ5Rpfz4T1JNk0";
    private static final String d = "http://api.t.163.com";
    private static cls_a e;
}
